package com.common.shared.model;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Classifier implements IsSerializable {
	/**
	 * 
	 */
	private int id;
	private int cltype;
	private int typeid;
	private String typename;

	// public transient long tmpId = System.nanoTime();

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCltype() {
		return cltype;
	}

	public void setCltype(int cltype) {
		this.cltype = cltype;
	}

	public int getTypeid() {
		return typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	public String getTypename() {
		return typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public Object[] toStore(boolean withID) {
		return new Object[] { id, cltype, typeid,
				(withID ? typeid + "." : "") + typename, this };
	}

}
